package  gearunits.models{
	import away3d.core.base.Face;
	import away3d.core.base.Mesh;
	import away3d.core.base.UV;
	import away3d.core.base.Vertex;
	import away3d.core.utils.Init;

	public class AMeshStoreshopSkirt extends Mesh {
		private var ve:Array;
		private var fa:Array;

		public function AMeshStoreshopSkirt(init:Object = null) {
			super( init );
			init = Init.parse(init);
			ve = [];
			v(30.300001,30.299997,3.029999);
			v(42.420006,-30.300001,3.029999);
			v(-42.420002,-30.299997,3.029999);
			v(-30.299988,30.300013,3.029999);
			v(30.300016,30.299986,-3.030001);
			v(42.419979,-30.300018,-3.030001);
			v(-42.420013,-30.299986,-3.030001);
			v(-30.299997,30.300001,-3.030001);
			v(-30.299995,40.300003,-3.030020);
			v(30.300018,40.299988,-3.030020);
			v(-30.299986,40.300011,3.029980);
			v(30.300003,40.299995,3.029980);

			f(10,8,11,0.498444,0.943029,0.459156,0.942908,0.499649,0.550150,0.000000,-0.000001,1.000000);
			f(8,9,11,0.459156,0.942908,0.460361,0.550030,0.499649,0.550150,0.000000,-0.000001,1.000000);
			f(0,3,10,0.394325,0.470249,0.393120,0.077370,0.457951,0.077172,0.000000,1.000000,0.000002);
			f(0,10,11,0.394325,0.470249,0.457951,0.077172,0.459156,0.470050,0.000000,1.000000,0.000002);
			f(7,4,9,0.852275,0.472659,0.853481,0.079781,0.918312,0.079980,-0.000000,-1.000000,-0.000002);
			f(7,9,8,0.852275,0.472659,0.918312,0.079980,0.917107,0.472858,-0.000000,-1.000000,-0.000002);
			f(4,0,11,0.960516,0.865155,0.999804,0.865035,1.000000,0.928931,1.000000,0.000003,-0.000000);
			f(4,11,9,0.960516,0.865155,1.000000,0.928931,0.960712,0.929052,1.000000,0.000003,-0.000000);
			f(3,7,10,0.960516,0.400629,0.999804,0.400509,0.960712,0.464526,-1.000000,0.000002,0.000000);
			f(7,8,10,0.999804,0.400509,1.000000,0.464405,0.960712,0.464526,-1.000000,0.000002,0.000000);
			f(2,6,7,0.959287,0.000120,0.998575,0.000000,0.999804,0.400509,-0.980581,0.000002,0.196116);
			f(2,7,3,0.959287,0.000120,0.999804,0.400509,0.960516,0.400629,-0.980581,0.000001,0.196116);
			f(1,5,2,0.959287,0.550030,0.920000,0.550150,0.957600,0.000000,-0.000000,0.000003,-1.000000);
			f(5,6,2,0.920000,0.550150,0.918312,0.000120,0.957600,0.000000,-0.000000,-0.000002,-1.000000);
			f(0,4,1,0.999804,0.865035,0.960516,0.865155,0.998575,0.464526,0.980581,0.000002,0.196116);
			f(4,5,1,0.960516,0.865155,0.959287,0.464646,0.998575,0.464526,0.980581,-0.000005,0.196116);
			f(4,7,5,0.853481,0.079781,0.852275,0.472659,0.460843,0.000000,0.000000,-1.000000,0.000000);
			f(7,6,5,0.852275,0.472659,0.459156,0.550030,0.460843,0.000000,0.000000,-1.000000,0.000000);
			f(0,1,2,0.394325,0.470249,0.001687,0.550030,0.000000,0.000000,-0.000000,1.000000,-0.000000);
			f(0,2,3,0.394325,0.470249,0.000000,0.000000,0.393120,0.077370,-0.000000,1.000000,0.000000);

			this.x = 0.000000;
			this.y = 0.000000;
			this.z = 0.000000;

			this.rotationX = 0.000000;
			this.rotationY = 0.000000;
			this.rotationZ = 0.000000;

			this.scaleX = 1.000000;

			this.scaleY = 1.000000;

			this.scaleZ = 1.000000;
		}
		public function v(x:Number, y:Number, z:Number):void {
			ve.push(new Vertex(x, y, z));
		}

		public function f(vertexIndex1:int, vertexIndex2:int, vertexIndex3:int, uv00:Number, uv01:Number, uv10:Number, uv11:Number, uv20:Number, uv21:Number, normalx:Number, normaly:Number, normalz:Number):void {
			var face:Face = new Face( ve[vertexIndex1], ve[vertexIndex2], ve[vertexIndex3], null, new UV(uv00, uv01), new UV(uv10, uv11), new UV(uv20, uv21) );
			addFace(face);
		}

		public function f2(vertexIndex1:int, vertexIndex2:int, vertexIndex3:int):void {
			addFace( new Face(ve[vertexIndex1], ve[vertexIndex2], ve[vertexIndex3]) );
		}

	}
}